home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacOS Resource Fork
(archive/rsrc).
You can browse this item here: TN.007.Debugging Tips.rsrc
id metadata |
---|
key | value |
---|
macFileType | [DDf4] |
macFileCreator | [DDAP] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 16 07 00 02 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 02 00 00 00 09 00 00 |........|........|
|00000020| 00 32 00 00 00 20 00 00 | 00 02 00 00 00 52 00 00 |.2... ..|.....R..|
|00000030| 04 81 44 44 66 34 44 44 | 41 50 01 00 00 00 00 00 |..DDf4DD|AP......|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 01 00 00 00 | 04 18 00 00 03 18 00 00 |........|........|
|00000060| 00 69 cc ed 45 e0 79 63 | 79 00 3f 2a 80 20 0e 05 |.i..E.yc|y.?*. ..|
|00000070| 87 40 65 cf 44 04 68 84 | 85 d0 9c 1f 79 4c 00 84 |.@e.D.h.|....yL..|
|00000080| d1 44 15 54 4e 2e 30 30 | 37 2e 44 65 62 75 67 67 |.D.TN.00|7.Debugg|
|00000090| 69 6e 67 20 54 69 70 73 | 02 00 00 00 44 44 66 34 |ing Tips|....DDf4|
|000000a0| 44 44 00 00 44 44 66 34 | 44 44 41 50 01 00 00 3c |DD..DDf4|DDAP...<|
|000000b0| 00 c0 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 9a d1 4b e1 | 00 00 10 c6 00 00 04 81 |......K.|........|
|000000d0| 00 28 09 00 01 00 1e 54 | 4e 2e 31 32 39 2e 5f 47 |.(.....T|N.129._G|
|000000e0| 65 73 74 61 6c 74 20 26 | 20 5f 53 79 73 45 6e 76 |estalt &| _SysEnv|
|000000f0| 69 72 6f 6e 73 01 00 00 | 00 08 57 4f 52 44 4d 41 |irons...|..WORDMA|
|00000100| 43 41 a3 a8 0c 30 a3 a8 | 10 61 00 00 07 7d 32 1b |CA...0..|.a...}2.|
|00000110| 00 04 00 00 00 00 00 00 | 33 0e 00 00 00 00 00 00 |........|3.......|
|00000120| 18 75 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.u......|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 02 10 54 4e | 2e 30 30 37 2e 44 65 62 |......TN|.007.Deb|
|00000160| 75 67 67 69 6e 67 20 54 | 69 70 73 20 2d 20 54 68 |ugging T|ips - Th|
|00000170| 69 73 20 70 72 65 73 65 | 6e 74 73 20 61 20 66 65 |is prese|nts a fe|
|00000180| 77 20 74 69 70 73 20 77 | 68 69 63 68 20 6d 61 79 |w tips w|hich may|
|00000190| 20 6d 61 6b 65 20 79 6f | 75 72 20 64 65 62 75 67 | make yo|ur debug|
|000001a0| 67 69 6e 67 20 65 61 73 | 69 65 72 2e 20 53 65 74 |ging eas|ier. Set|
|000001b0| 74 69 6e 67 20 6d 65 6d | 6f 72 79 20 6c 6f 63 61 |ting mem|ory loca|
|000001c0| 74 69 6f 6e 20 30 20 74 | 6f 20 73 6f 6d 65 74 68 |tion 0 t|o someth|
|000001d0| 69 6e 67 20 6f 64 64 20 | 44 65 72 65 66 65 72 65 |ing odd |Derefere|
|000001e0| 6e 63 69 6e 67 20 6e 69 | 6c 20 68 61 6e 64 6c 65 |ncing ni|l handle|
|000001f0| 73 20 63 61 6e 20 63 61 | 75 73 65 20 72 65 61 6c |s can ca|use real|
|00000200| 20 70 72 6f 62 6c 65 6d | 73 20 66 6f 72 20 61 6e | problem|s for an|
|00000210| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 49 66 | applica|tion. If|
|00000220| 20 6c 6f 63 61 74 69 6f | 6e 20 30 20 28 6e 69 6c | locatio|n 0 (nil|
|00000230| 29 20 69 73 20 73 6f 6d | 65 74 68 69 6e 67 20 65 |) is som|ething e|
|00000240| 76 65 6e 2c 20 74 68 65 | 20 64 65 72 65 66 65 72 |ven, the| derefer|
|00000250| 65 6e 63 65 20 77 69 6c | 6c 20 6e 6f 74 20 63 61 |ence wil|l not ca|
|00000260| 75 73 65 20 61 6e 20 61 | 64 64 72 65 73 73 20 65 |use an a|ddress e|
|00000270| 72 72 6f 72 2c 20 61 6e | 64 20 74 68 65 20 61 70 |rror, an|d the ap|
|00000280| 70 6c 69 63 61 74 69 6f | 6e 20 63 61 6e 20 72 75 |plicatio|n can ru|
|00000290| 6e 20 6f 6e 20 66 6f 72 | 20 71 75 69 74 65 20 61 |n on for| quite a|
|000002a0| 20 77 68 69 6c 65 2c 20 | 6d 61 6b 69 6e 67 20 74 | while, |making t|
|000002b0| 72 61 63 69 6e 67 20 62 | 61 63 6b 20 74 6f 20 74 |racing b|ack to t|
|000002c0| 68 65 20 70 72 6f 62 6c | 65 6d 20 71 75 69 74 65 |he probl|em quite|
|000002d0| 20 64 69 66 66 69 63 75 | 6c 74 2e 20 49 66 20 6c | difficu|lt. If l|
|000002e0| 6f 63 61 74 69 6f 6e 20 | 30 20 63 6f 6e 74 61 69 |ocation |0 contai|
|000002f0| 6e 73 20 73 6f 6d 65 74 | 68 69 6e 67 20 6f 64 64 |ns somet|hing odd|
|00000300| 2c 20 73 75 63 68 20 61 | 73 20 24 35 30 46 46 43 |, such a|s $50FFC|
|00000310| 30 30 31 2c 20 61 6e 20 | 61 64 64 72 65 73 73 20 |001, an |address |
|00000320| 65 72 72 6f 72 20 77 69 | 6c 6c 20 62 65 20 67 65 |error wi|ll be ge|
|00000330| 6e 65 72 61 74 65 64 20 | 69 6d 6d 65 64 69 61 74 |nerated |immediat|
|00000340| 65 6c 79 20 77 68 65 6e | 20 61 20 6e 69 6c 20 68 |ely when| a nil h|
|00000350| 61 6e 64 6c 65 20 69 73 | 20 64 65 72 65 66 65 72 |andle is| derefer|
|00000360| 65 6e 63 65 64 2e 00 00 | 01 00 ff 54 4e 2e 30 30 |enced...|...TN.00|
|00000370| 37 2e 44 65 62 75 67 67 | 69 6e 67 20 54 69 70 73 |7.Debugg|ing Tips|
|00000380| 20 2d 20 54 68 69 73 20 | 70 72 65 73 65 6e 74 73 | - This |presents|
|00000390| 20 61 20 66 65 77 20 74 | 69 70 73 20 77 68 69 63 | a few t|ips whic|
|000003a0| 68 20 6d 61 79 20 6d 61 | 6b 65 20 79 6f 75 72 20 |h may ma|ke your |
|000003b0| 64 65 62 75 67 67 69 6e | 67 20 65 61 73 69 65 72 |debuggin|g easier|
|000003c0| 2e 20 53 65 74 74 69 6e | 67 20 6d 65 6d 6f 72 79 |. Settin|g memory|
|000003d0| 20 6c 6f 63 61 74 69 6f | 6e 20 30 20 74 6f 20 73 | locatio|n 0 to s|
|000003e0| 6f 6d 65 74 68 69 6e 67 | 20 6f 64 64 20 44 65 72 |omething| odd Der|
|000003f0| 65 66 65 72 65 6e 63 69 | 6e 67 20 6e 69 6c 20 68 |eferenci|ng nil h|
|00000400| 61 6e 64 6c 65 73 20 63 | 61 6e 20 63 61 75 73 65 |andles c|an cause|
|00000410| 20 72 65 61 6c 20 70 72 | 6f 62 6c 65 6d 73 20 66 | real pr|oblems f|
|00000420| 6f 72 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |or an ap|plicatio|
|00000430| 6e 2e 20 49 66 20 6c 6f | 63 61 74 69 6f 6e 20 30 |n. If lo|cation 0|
|00000440| 20 28 6e 69 6c 29 69 73 | 20 73 6f 6d 65 74 68 69 | (nil)is| somethi|
|00000450| 6e 67 20 65 76 65 6e 2c | 20 74 68 65 20 64 65 72 |ng even,| the der|
|00000460| 65 66 65 72 65 6e 63 65 | 20 77 00 00 01 00 00 00 |eference| w......|
|00000470| 04 18 00 00 03 18 00 00 | 00 69 00 65 de 74 07 b8 |........|.i.e.t..|
|00000480| 00 00 00 1c 00 46 00 01 | 53 69 74 43 00 00 00 12 |.....F..|SitC....|
|00000490| 46 43 4d 54 00 00 00 1e | 00 00 00 00 00 00 00 00 |FCMT....|........|
|000004a0| 00 00 00 00 00 00 00 11 | 00 00 02 14 00 66 19 54 |........|.....f.T|
|000004b0| 10 4c 6f 6e 67 20 44 65 | 73 63 72 69 70 74 69 6f |.Long De|scriptio|
|000004c0| 6e 11 42 72 69 65 66 20 | 44 65 73 63 72 69 70 74 |n.Brief |Descript|
|000004d0| 69 6f 6e | |ion | |
+--------+-------------------------+-------------------------+--------+--------+